/* 模块三 : 主体 :产品列表 */

main {
    margin-top: 30px;
}

main h1 {
    color: #000;
    font-weight: normal;
    border-bottom: 1px solid #eee;
    line-height: 35px;
    font-size: 18px;
}

main h1 small {
    color: #777;
}

table {
    margin: 20px 0;
}

table td {
    padding: 15px;
}

thead {
    background-color: #efefef;
    border: 1px #e9e9e9 solid;
    font-size: 14px;
    color: #333;
}

tbody {
    background: #fffeec;
}

tbody tr {
    border-bottom: 1px #e9e9e9 solid
}

tbody .picture {
    float: left;
    padding: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
}

tbody .picture img {
    width: 79px;
    height: 79px;
}

tbody p {
    float: left;
    margin-left: 20px;
}

tbody td:nth-child(5) {
    font-weight: bold;
}

tbody td:nth-child(6) {
    font-size: 12px;
    color: #555;
}


/* span input都不用给高度,宽度,因为字体一样大,直接给padding撑开 */


/* 注:input还是要给宽高的,span可以不给 */

tbody td:nth-child(4) span,
tbody td:nth-child(4) input {
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
}

tbody td:nth-child(4) input {
    text-align: center;
    margin: 0 -5px;
    width: 78px;
    height: 28px;
}

tbody td:nth-child(4) span {
    padding: 5px 10px;
}

tbody td:nth-child(4) span:hover {
    background-color: #e6e6e6;
    border-color: #adadad;
}

tbody td:nth-child(4) span,
tbody td:nth-child(6) button,
tfoot #sumbtn {
    cursor: pointer;
}

tfoot {
    line-height: 40px;
    border: 1px #efefef solid;
}

tfoot .totalMoney {
    text-align: right;
    margin-right: 60px;
}

tfoot #sumbtn {
    padding: 10px 16px;
    font-size: 18px;
    border-radius: 3px;
    color: #fff;
    background: #ed1c24;
    border: 1px solid #ed1c24;
}

tfoot button {
    font-size: 12px;
    color: #555;
}

.allPrice {
    color: #ed1c24;
    font-size: 22px;
}

.allRemove {
    cursor: pointer;
}

.allRemove:hover {
    color: #000;
}